<include file="public@header" />
</head>
<body>
	<div class="wrap js-check-wrap">
		<ul class="nav nav-tabs">
			<li><a href="{:url('Construction/index')}">项目管理</a></li>
			<li><a href="{:url('Construction/add')}">发起项目</a></li>
			<li class="active"><a href="{:url('Construction/accepting',array('id'=>$id))}">验收申请</a></li>
		</ul>
		<form class="form-horizontal js-ajax-form" action="{:url('Construction/accepting_post')}" method="post" enctype="multipart/form-data">
            <fieldset>
				<input type="hidden" name="project_id" value="{$id}">
            	<div class="p_title">
                	<span class="span_title">项目验收</span>
                </div>
                <div class="control-group1-p">
				<div class="control-group1">
					<label class="control-label">项目名称</label>
					<div class="controls">
						<input  type="text" class="form-control" name="pro_name" value="{$pro_name}" id="goods_name" disabled/>
					</div>
				</div>
                <div class="control-group1">
					<label class="control-label">项目类型</label>
					<div class="controls">
						<select name="pro_type" disabled class="form-control">
							<option value='1'<if condition="'1' eq $pro_type">selected</if>>土建土方类</option>
							<option value="2"<if condition="'2' eq $pro_type">selected</if>>装饰安装类</option>
							<option value="3"<if condition="'3' eq $pro_type">selected</if>>建筑结构类</option>
							<option value="4"<if condition="'4' eq $pro_type">selected</if>>绿化养护类</option>
							<option value="5"<if condition="'5' eq $pro_type">selected</if>>水电暖通类</option>
							<option value="6"<if condition="'6' eq $pro_type">selected</if>>智能弱电类</option>
							<option value="7"<if condition="'7' eq $pro_type">selected</if>>道路桥梁类</option>
							<option value="8"<if condition="'8' eq $pro_type">selected</if>>管沟架线类</option>
							<option value="9"<if condition="'9' eq $pro_type">selected</if>>道路桥梁类</option>
							<option value="10"<if condition="'10' eq $pro_type">selected</if>>消防水利类</option>
							<option value="11"<if condition="'11' eq $pro_type">selected</if>>加工制作类</option>
							<option value="12"<if condition="'12' eq $pro_type">selected</if>>其他类</option>
						</select>
					</div>
				</div>
                <div class="control-group1">
					<label class="control-label">具体位置</label>
					<div class="controls">
                    	<input  type="text" class="form-control" name="position" value="{$position}" disabled/>
					</div>
				</div>
				<div class="control-group1">
					<label class="control-label">施工方</label>
					<div class="controls">
						<input  type="text" class="form-control" name="construction_side" value="{$construction_side}" disabled/>
					</div>
				</div>
                <div class="control-group1">
					<label class="control-label">施工负责人</label>
					<div class="controls">
						<input  type="text" class="form-control" name="construction_peo" value="{$construction_peo}" disabled/>
					</div>
				</div>
                <div class="control-group1">
					<label class="control-label">负责人</label>
					<div class="controls">
						<input  type="text" class="form-control" name="principal" value="{$principal}" disabled/>
					</div>
				</div>
                <div class="control-group1">
					<label class="control-label">联系电话</label>
					<div class="controls">
						<input  type="text" class="form-control" name="tel" value="{$tel}" disabled/>
					</div>
				</div>
				<div class="control-group1">
					<label class="control-label">计划开工时间</label>
					<div class="controls">
						<input  type="text" class="form-control js-date" name="plan_time" value="{$plan_time|date='Y-m-d'}" disabled/>
                        <span class="form-required">*</span>
					</div>
				</div>
				<div class="control-group1">
					<label class="control-label">计划竣工时间</label>
					<div class="controls">
						<input  type="text" class="form-control js-date" name="completion_time" value="{$completion_time|date='Y-m-d'}" disabled/>
                        <span class="form-required">*</span>
					</div>
				</div>
				<div class="control-group1">
					<label class="control-label">预算造价</label>
					<div class="controls">
						<input  type="text" class="form-control" name="budget_cost" value="{$budget_cost}" disabled/>万
                        <span class="form-required">*</span>
					</div>
				</div>

                <div class="control-group1">
					<label class="control-label">联系地址</label>
					<div class="controls">
						<input  type="text" class="form-control" name="address" value="{$address}" disabled/>
					</div>
				</div>
                <div class="control-group1">
					<label class="control-label">合同编号</label>
					<div class="controls">
						<input  type="text" class="form-control" name="num" value=""/>
					</div>
				</div>
                <div class="control-group1">
					<label class="control-label">增补合同</label>
					<div class="controls">
						<select class="form-control" name="supplementary_contract">
                        	<option value="1">有</option>
                            <option value="0">无</option>
                        </select>
					</div>
				</div>
                <div class="control-group1" name="addCon">
					<label class="control-label">增补合同金额</label>
					<div class="controls">
						<input  type="text" class="form-control" name="supplementary_contract_price" value=""/>
					</div>
				</div>
                <div class="control-group1">
					<label class="control-label">付款方式</label>
					<div class="controls">
						<input  type="text" class="form-control" name="pay" value=""/>
					</div>
				</div>
                <div class="control-group1">
					<label class="control-label">付款时间</label>
					<div class="controls">
						<input  type="text" class="form-control js-date" name="pay_time" value="" autocomplete="off"/>
					</div>
				</div>
                <div class="control-group1">
					<label class="control-label">是否开票</label>
					<div class="controls">
						<select class="form-control" name="bill">
                        	<option value="1">是</option>
                            <option value="0">否</option>
                        </select>
					</div>
				</div>
                <div class="control-group1" >
					<label class="control-label">票据金额</label>
					<div class="controls">
						<input  type="text" class="form-control" name="bil_price" value=""/>
					</div>
				</div>
                <div class="control-group1">
					<label class="control-label">票据类型</label>
					<div class="controls">
						<select class="form-control" name="bill_type">
                        	<option value="1">增专</option>
                            <option value="0">增普</option>
                        </select>
					</div>
				</div>
                <div class="control-group1">
					<label class="control-label">施工内容</label>
					<div class="controls">
						<textarea class="form-control" name="construction" required></textarea>
                        <span class="form-required">*</span>
					</div>
				</div>
                </div>
			</fieldset>
			<div class="form-actions">
				<button type="submit" class="btn btn-primary js-ajax-submit">{:lang('ADD')}</button>
				<a class="btn btn-default" href="javascript:history.back(-1);">{:lang('BACK')}</a>
			</div>
		</form>
	</div>
	<script type="text/javascript" src="__STATIC__/js/admin.js?v={:time()}"></script>

	<script type="text/javascript">
        var t = new Date();//获取当前时间
        var year = t.getFullYear(); //得到年份
      	var month = t.getMonth();//得到月份
     	var date = t.getDate();//得到日期
        $("input[name='now_time']").val(year + "-" + month + "-" + date);

		$("#addCon").change(function(){
			if($(this).val()==0){
				$("div[name='addCon']").hide();
			}
		});
		$("#ifInv").change(function(){
			if($(this).val()==0){
				$("div[name='ifInv']").hide();
			}
		});
    </script>
</body>
</html>